package cn.ddm.hrm.client;

import cn.ddm.hrm.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@FeignClient(value = "THIRD-PARTY-SERVICE", fallbackFactory = ThirdPartyFallbackFactory.class)
public interface ThirdPartyClient {


    /**
     * 校验图片验证码
     * @param params
     * @return
     */
    @PostMapping("/imageVerifyCode/verify")
    AjaxResult verifyImgCode(@RequestBody Map<String,String> params);

    /**
     * 发送图片验证码
     * @param params
     * @return
     */
    @PostMapping("/smsVerifyCode")
    AjaxResult verifySmsCode(@RequestBody Map<String,String> params);

    /**
     * 发送短信验证码
     * @param params
     * @return
     */
    @PostMapping("/smsVerifyCode/sendVerifyCode")
    AjaxResult sendSmsVerifyCode(@RequestBody Map<String,String> params);
}
